package com.pxst.merchant.mapper;

import com.pxst.merchant.entity.SysMerchantInfo;
import com.pxst.merchant.req.MerchantListReq;
import com.pxst.merchant.resp.MerchantListResp;
import com.pxst.merchant.resp.MerchantSelectListResp;
import icu.mhb.mybatisplus.plugln.base.mapper.JoinBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author zarke
* @since 2023-09-11 15:32:47
*/
@Mapper
public interface SysMerchantInfoMapper extends JoinBaseMapper<SysMerchantInfo> {

    @Select("SELECT " +
            "`id`, `name`, `code`,`currency`,`bank_group_id` " +
            "FROM" +
            " `sys_merchant_info`")
    List<MerchantSelectListResp> getMerchantSelectList();

    List<MerchantListResp> getMerchantInfoList(@Param("param") MerchantListReq param);
}